<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            违法教育统计信息
        </h1>
        <ol class="breadcrumb">
            <li><a href="/dashboard"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">违法教育</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <div class="row">

            <!-- 处理线图 -->
            <div class="col-md-12 col-xs-12">

                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">本月违法教育态势</h3>
                        <span>违法教育总数</span>
                        <span style="color:#0033FF"><?= $this_month_all_count ?></span>
                        <span class="text-green"><i class="fa fa-caret-<?php if ($uprate > 0) {
                                echo 'up';
                            } else if ($uprate < 0) {
                                echo 'down';
                            } else {
                                echo 'left';
                            } ?>"></i> <?= $uprate ?>%</span>
                        <div class="box-tools">
                            <a class="btn btn-default" href="/violation/export/<?= $m ?>.csv"><i
                                        class="fa  fa-cloud-download"></i> 导出报表</a>
                        </div>
                    </div>

                    <div class="box-body">


                         <!--   <div class="col-md-3 col-xs-12">

                                <?php /*foreach ($violation_ranks as $rank): */?>
                                    <div class="progress-group" data-toggle="tooltip" data-placement="left"
                                         title="<?/*= $rank["violation_desc"] ? $rank["violation_desc"] : '其他' */?>">
                                        <span class="progress-text">违法代码 <?/*= $rank["violation_code"] ? $rank["violation_code"] : '其他' */?></span>
                                        <span class="progress-number"><b><?/*= $rank["count"] */?></b></span>

                                        <div class="progress sm">
                                            <div class="progress-bar progress-bar-<?php /*if ($rank['rank'] == 1) {
                                                echo 'red';
                                            } else if ($rank['rank'] == 2) {
                                                echo 'yellow';
                                            } else if ($rank['rank'] == 3) {
                                                echo 'primary';
                                            } else if ($rank['rank'] == 4) {
                                                echo 'aqua';
                                            } else if ($rank['rank'] == 5) {
                                                echo 'green';
                                            } */?>" style="width: <?/*= $rank["percent"] */?>%"></div>
                                        </div>
                                    </div>
                                <?php /*endforeach; */?>

                            </div>-->

                            <div class="col-md-7 col-xs-12">
                                <div id="chart_wzjy"></div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>

            <!-- 使用统计 -->
            <div class="col-md-4 col-xs-12">

                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">单位工作排名</h3>
                    </div>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <?php foreach ($dept_ranks as $key => $item): ?>
                                <tr>
                                    <td><span class="label bg-aqua"><?php echo $key + 1; ?></span></td>
                                    <td><?php echo $item["dept"] ?></td>
                                    <td><span class="pull-right"><?php echo $item["count"] ?> 人</span></td>
                                </tr>
                            <?php endforeach; ?>

                        </table>
                    </div>
                </div>

            </div>

            <!-- 单位处理统计 -->
            <div class="col-md-4 col-xs-12">

                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">个人工作排名</h3>
                    </div>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <?php foreach ($police_ranks as $key => $item): ?>
                                <tr data-name="<?php echo $item["name"] ?>"
                                    class="<?php if ($userdept == $item["name"]) echo 'my-dept'; ?>">
                                    <td><span class="label bg-aqua"><?php echo $key + 1; ?></span></td>
                                    <td><?php echo $item["name"] ?></td>
                                    <td><span class="pull-right"><?php echo $item["count"] ?> </span></td>
                                </tr>
                            <?php endforeach; ?>

                        </table>
                    </div>
                </div>

            </div>

            <!-- 警员处理统计 -->
            <div class="col-md-4 col-xs-12">

                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">重点违法人员</h3>
                    </div>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <?php foreach ($violator_ranks as $key => $item): ?>
                                <tr>
                                    <td><span class="label bg-aqua"><?php echo $key + 1; ?></span></td>
                                    <td><?php echo $item["idcard"] ?></td>
                                    <td><span class="pull-right"><?php echo $item["count"] ?> </span></td>
                                </tr>
                            <?php endforeach; ?>

                        </table>
                    </div>
                </div>

            </div>
        </div>

    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->